package com.news.service.impl;

import java.util.List;

import com.news.dao.impl.NewsDatailDaoImpl;
import com.news.service.NewsService;
import com.news.ssh.entity.NewsDatail;

public class NewsServiceImpl implements NewsService {

	private NewsDatailDaoImpl newsdataildao;

	public void create(NewsDatail entity) {
		newsdataildao.create(entity);

	}

	public void delete(NewsDatail entity) {
		newsdataildao.delete(entity);

	}

	public void update(NewsDatail entity) {
		newsdataildao.update(entity);

	}

	public List<NewsDatail> findall() {
		return newsdataildao.findall();

	}

	public NewsDatail findbyid(Integer id) {
		return newsdataildao.findbyid(id);

	}

	public void setNewsdataildao(NewsDatailDaoImpl newsdataildao) {
		this.newsdataildao = newsdataildao;
	}

}
